﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WaterBill.DTO
{
    class DTO_Customers
    {
        #region "Bien toan cuc"
        private int _CustomerId;
        private string _FullName;
        private string _HouseNumber;
        private int _NestId;
        private string _Phone;
        private DateTime _RegisteredDate;
        private int _Status;
        #endregion
        #region "Thuoc tinh"
        public int CustomerId
        {
            get { return _CustomerId; }
            set { _CustomerId = value; }
        }
        public string FullName
        {
            get { return _FullName; }
            set { _FullName = value; }
        }
        public string HouseNumber
        {
            get { return _HouseNumber; }
            set { _HouseNumber = value; }
        }
        public int NestId
        {
            get { return _NestId; }
            set { _NestId = value; }
        }
        public string Phone
        {
            get { return _Phone; }
            set { _Phone = value; }
        }
        public DateTime RegisteredDate
        {
            get { return _RegisteredDate; }
            set { _RegisteredDate = value; }
        }
        public int Status
        {
            get { return _Status; }
            set { _Status = value; }
        }
        #endregion
        #region "Phuong thuc"
        public DTO_Customers()
        {
            _CustomerId = 0;
            _FullName = string.Empty;
            _HouseNumber = string.Empty;
            _NestId = 0;
            _Phone = string.Empty;
            _RegisteredDate = DateTime.Now;
            _Status = 1;
        }
        public DTO_Customers(DTO_Customers obj)
        {
            this.CustomerId = obj.CustomerId;
            this.FullName = obj.FullName;
            this.HouseNumber = obj.HouseNumber;
            this.NestId = obj.NestId;
            this.Phone = obj.Phone;
            this.RegisteredDate = obj.RegisteredDate;
            this.Status = obj.Status;
        }
        public DTO_Customers(int CustomerId, string FullName, string HouseNumber, int NestId, string Phone, DateTime RegisteredDate, int Status)
        {
            this.CustomerId = CustomerId;
            this.FullName = FullName;
            this.HouseNumber = HouseNumber;
            this.NestId = NestId;
            this.Phone = Phone;
            this.RegisteredDate = RegisteredDate;
            this.Status = Status;
        }
        #endregion
    }
}
